package xy.property.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnJava;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xy.property.entity.User;

/**
 * @Classname UserConfig
 * @Description TODO
 * @Date 2023/7/18 09:13
 * @Created by wangxianlin
 */
@Slf4j
@Configuration
public class UserConfig {

    @Bean
    @ConditionalOnProperty(value = "is_load_bean",havingValue = "true",matchIfMissing = true)
    public User user(){
        return new User();
    }
}
